package com.gaoyi.crm.vm;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.MutableLiveData;

import com.gaoyi.crm.apiresult.ApiResultData;
import com.gaoyi.crm.callback.OnResultListener;
import com.gaoyi.crm.constant.ApiStatus;
import com.gaoyi.crm.db.entity.PmnWithList;
import com.gaoyi.crm.repository.PmnRepository;
import com.gaoyi.crm.util.ToastUtil;
import com.gaoyi.crm.vm.base.BaseListViewModel;

public class EditRecordViewModel extends BaseListViewModel<PmnWithList> {

    final PmnRepository mPmn;
    MutableLiveData<Integer> mResultCode;
    MutableLiveData<PmnWithList> mPmnWithList;

    public MutableLiveData<PmnWithList> getPmnWithList() {
        if (mPmnWithList == null) {
            mPmnWithList = new MutableLiveData<>();
        }
        return mPmnWithList;
    }

    public EditRecordViewModel(@NonNull Application application) {
        super(application);
        mPmn = new PmnRepository();
    }

}
